import { lazyBatchReport } from '../report/index'
import { generateUniqueId } from '../utils/index'

export default function pv() {
  const reportData = {
    type: 'behavior',
    subType: 'pv',
    startTime: performance.now(),
    pageUrl: window.location.href,
    referor: document.referrer,
    uuid: generateUniqueId(),
  }

  // 数据上报
  lazyBatchReport(reportData)
}
